load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library_prost_0134")
load("@fbcode//grpc_fb/codegen:buck_macros.bzl", "grpc_library")

oncall("build_infra")

rust_protobuf_library_prost_0134(
    name = "buck2_install_proto",
    srcs = glob(["src/**/*.rs"]),
    build_script = "build.rs",
    proto_srcs = ":buck2_install_proto.proto",
)

proto_srcs(
    name = "buck2_install_proto.proto",
    srcs = ["install.proto"],
    visibility = ["PUBLIC"],
)

grpc_library(
    name = "install",
    srcs = [
        "install.proto",
    ],
    languages = [
        "py",
    ],
)
